package com.cby.springboot.demo.service;

import com.cby.springboot.demo.bean.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface UserService {

    List<User> getAllUsers();
    //通过用户名密码查询用户数据
    User getByUserNameAndPassword(User user);

    //通过用户名密码查询用户数据
    User getByUserName(String userName);
    int insert(User record);
    int updateByPrimaryKey(User record);
    User getByName(String userName);
}
